package view.room;

import controllers.RoomController;
import javax.swing.JDialog;
import javax.swing.JFrame;

@SuppressWarnings("serial")
public class RoomSearcher extends JDialog{
	public RoomSearcher(JFrame parent){
		super(parent, "Chọn phòng", true);
		initUI();
	}
	
	public RoomSearcher(JDialog parent){
		super(parent, "Chọn phòng", true);
		
		initUI();
	}
	
	public void initUI(){
		setSize(800, 400);
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setResizable(true);
		setLocationRelativeTo(getParent());
		add(new RoomPanel(RoomController.getAllType()));
	}
	

}
